package org.csu.small.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@TableName("small_product")
@AllArgsConstructor
@NoArgsConstructor
public class Product {
    @TableId(type= IdType.AUTO)
    private Integer id;
    private Integer categoryId;
    private String name;
    private String subtitle;
    private String mainImage;
    private String subImages;
    private String detail;
    private BigDecimal price;
    private Integer stock;
    private Integer status;

    @TableField( fill = FieldFill.INSERT)
    private LocalDateTime createTime;
    @TableField( fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;
}
